package com.fable.dal.mapper;

import com.fable.dal.model.AdminRoleDO;
import com.fable.dal.model.AdminRoleQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for AdminRole.
 */
public interface AdminRoleMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(AdminRoleQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AdminRoleQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AdminRoleDO record);

    /**
     * insert selective.
     */
    int insertSelective(AdminRoleDO record);

    /**
     * select by query condition.
     */
    List<AdminRoleDO> selectByQuery(AdminRoleQuery query);

    /**
     * select by primary key.
     */
    AdminRoleDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") AdminRoleDO record, @Param("query") AdminRoleQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") AdminRoleDO record, @Param("query") AdminRoleQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AdminRoleDO record);
}